package com.gupt.youhd.mapper;/*
@author name
@data 2023/4/5-11:25
*/


import com.gupt.youhd.entity.Address;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface AddressMapper {
    //查询该用户收货地址
    List<Address> retrieveAddressByUserId(Integer userId);

    //根据地址id删除该用户的收货地址
    int delAddressByAddressId(int addressId);

    //根据地址id修改用户的收货地址,收件人，手机号
    int updateAddressByAddressId(Address address);

    //添加新的收货地址
    int addAddress(Address address);
}
